<%@page import="edu.tgc.security.SessionUserUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。
	pageContext.setAttribute("basePath",basePath);
%>
<form action="${param.action}" method="post" id="teaching_enroll_form">
	<input type="hidden" name="id" value="${model.id}">
	<input type="hidden" name="creator.id" value="<%=SessionUserUtils.getSysUser().getId().toString()%>">
	<div class="custom-form">
		<ul>
			<li><span>名称：</span><input class="easyui-textbox" name="name" value="${model.name}" data-options="required:true"/></li>
			<li><span>适用范围：</span><input name="dept.id" value="${model.dept.id}" class="easyui-combotree"
				data-options="url:'sys/dept/comboTree?sort=sort,asc',valueField:'id',textField:'name',method:'get',icons:[clearInput_icon],required:true" /></li>
			<li><span>结止时间：</span><input name="endTime" class="easyui-datetimebox" value="${model.endTime}" data-options="required:true"></li>
			<li style="width:450px;"><span>说明：</span><textarea name="comment" class="easyui-textbox" data-options="multiline:true" style="float: left; width: 350px; height: 100px">${model.comment}</textarea></li>
		</ul>
	</div>
</form>
